package com.hongxun.budget.ui.fragment.sg;

import android.widget.TextView;

import com.hongxun.budget.R;
import com.hongxun.budget.ui.fragment.BaseFragment;
import com.hongxun.budget.utils.SgDBUtils;
import com.hongxun.budget.utils.SPUtils;
import com.hongxun.budget.utils.SgStrKey;
import com.hongxun.greenentity.sg.CBasicsWorkEntity;

import butterknife.BindView;

/**
 * 隐蔽工程信息详情：设备基础
 */
public class BrowseBasicsWorkInfo extends BaseFragment {
    @BindView(R.id.et21)
    TextView et21;
    @BindView(R.id.et22)
    TextView et22;
    @BindView(R.id.et23)
    TextView et23;
    @BindView(R.id.et24)
    TextView et24;
    @BindView(R.id.et25)
    TextView et25;
    @BindView(R.id.et26)
    TextView et26;

    public BrowseBasicsWorkInfo() {
    }

    @Override
    public int getLayoutId() {
        return R.layout.sg_fragment_browsebasicsworkinfo;
    }

    @Override
    public void initView() {
        CBasicsWorkEntity workEntity = SgDBUtils.getCBasicsWork(String.valueOf(SPUtils.get(context, SgStrKey.uuidxx, "")));
        et21.setText(workEntity.getBWContour());
        et22.setText(workEntity.getBWHigh());
        et23.setText(workEntity.getBWDig());
        et24.setText(workEntity.getBWDepth());
        et25.setText(workEntity.getBWGrade());
        et26.setText(workEntity.getBWResult());
    }

}
